package com.yhb.dao;

import com.yhb.yinsheng.model.Merchant;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface YinshengMapper {
    String getYinshengUserId(@Param("userId")String userId);
    String checkCardBound(@Param("userId")String userId, @Param("cardId")String cardId);

    void insertYinshengBound(@Param("cardId")String cardId, @Param("userId")String userId, @Param("yinshengUserId")String yinshengUserId);

    List<Merchant> getPlaceMerchantInfo(@Param("provinceId")String provinceId, @Param("cityId")String cityId);
    List<String> pickRandomChannelMerchant(@Param("provinceId")String provinceId, @Param("cityId")String cityId);
    String userCodeByUserId(@Param("userId")String userId);
    int addUserCodeBound(@Param("userId")String userId, @Param("userCode")String userCode);
}
